Package pl.wendigo.chrome.api.css

Contains DevTools Protocol CSS domain implementation accessible via CSSDomain class.

Types

AddRuleRequest
Link copied to clipboard
data class AddRuleRequest(styleSheetId: StyleSheetId, ruleText: String, location: SourceRange)
Represents request frame that can be used with CSS#addRule operation call.
AddRuleResponse
Link copied to clipboard
data class AddRuleResponse(rule: CSSRule)
Represents response frame that is returned from CSS#addRule operation call.
CollectClassNamesRequest
Link copied to clipboard
data class CollectClassNamesRequest(styleSheetId: StyleSheetId)
Represents request frame that can be used with CSS#collectClassNames operation call.
CollectClassNamesResponse
Link copied to clipboard
data class CollectClassNamesResponse(classNames: List<String>)
Represents response frame that is returned from CSS#collectClassNames operation call.
CreateStyleSheetRequest
Link copied to clipboard
data class CreateStyleSheetRequest(frameId: FrameId)
Represents request frame that can be used with CSS#createStyleSheet operation call.
CreateStyleSheetResponse
Link copied to clipboard
data class CreateStyleSheetResponse(styleSheetId: StyleSheetId)
Represents response frame that is returned from CSS#createStyleSheet operation call.
CSSComputedStyleProperty
Link copied to clipboard
data class CSSComputedStyleProperty(name: String, value: String)
CSSDomain
Link copied to clipboard
class CSSDomain : Domain
This domain exposes CSS read/write operations.
CSSKeyframeRule
Link copied to clipboard
data class CSSKeyframeRule(styleSheetId: StyleSheetId?, origin: StyleSheetOrigin, keyText: Value, style: CSSStyle)
CSS keyframe rule representation.
CSSKeyframesRule
Link copied to clipboard
data class CSSKeyframesRule(animationName: Value, keyframes: List<CSSKeyframeRule>)
CSS keyframes rule representation.
CSSMedia
Link copied to clipboard
data class CSSMedia(text: String, source: String, sourceURL: String?, range: SourceRange?, styleSheetId: StyleSheetId?, mediaList: List<MediaQuery>?)
CSS media rule descriptor.
CSSProperty
Link copied to clipboard
data class CSSProperty(name: String, value: String, important: Boolean?, implicit: Boolean?, text: String?, parsedOk: Boolean?, disabled: Boolean?, range: SourceRange?)
CSS property declaration data.
CSSRule
Link copied to clipboard
data class CSSRule(styleSheetId: StyleSheetId?, selectorList: SelectorList, origin: StyleSheetOrigin, style: CSSStyle, media: List<CSSMedia>?)
CSS rule representation.
CSSStyle
Link copied to clipboard
data class CSSStyle(styleSheetId: StyleSheetId?, cssProperties: List<CSSProperty>, shorthandEntries: List<ShorthandEntry>, cssText: String?, range: SourceRange?)
CSS style representation.
CSSStyleSheetHeader
Link copied to clipboard
data class CSSStyleSheetHeader(styleSheetId: StyleSheetId, frameId: FrameId, sourceURL: String, sourceMapURL: String?, origin: StyleSheetOrigin, title: String, ownerNode: BackendNodeId?, disabled: Boolean, hasSourceURL: Boolean?, isInline: Boolean, isMutable: Boolean, isConstructed: Boolean, startLine: Double, startColumn: Double, length: Double, endLine: Double, endColumn: Double)
CSS stylesheet metainformation.
FontFace
Link copied to clipboard
data class FontFace(fontFamily: String, fontStyle: String, fontVariant: String, fontWeight: String, fontStretch: String, unicodeRange: String, src: String, platformFontFamily: String, fontVariationAxes: List<FontVariationAxis>?)
Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.
FontsUpdatedEvent
Link copied to clipboard
data class FontsUpdatedEvent(font: FontFace?) : Event
Fires whenever a web font is updated.
FontVariationAxis
Link copied to clipboard
data class FontVariationAxis(tag: String, name: String, minValue: Double, maxValue: Double, defaultValue: Double)
Information about font variation axes for variable fonts
ForcePseudoStateRequest
Link copied to clipboard
data class ForcePseudoStateRequest(nodeId: NodeId, forcedPseudoClasses: List<String>)
Represents request frame that can be used with CSS#forcePseudoState operation call.
GetBackgroundColorsRequest
Link copied to clipboard
data class GetBackgroundColorsRequest(nodeId: NodeId)
Represents request frame that can be used with CSS#getBackgroundColors operation call.
GetBackgroundColorsResponse
Link copied to clipboard
data class GetBackgroundColorsResponse(backgroundColors: List<String>?, computedFontSize: String?, computedFontWeight: String?)
Represents response frame that is returned from CSS#getBackgroundColors operation call.
GetComputedStyleForNodeRequest
Link copied to clipboard
data class GetComputedStyleForNodeRequest(nodeId: NodeId)
Represents request frame that can be used with CSS#getComputedStyleForNode operation call.
GetComputedStyleForNodeResponse
Link copied to clipboard
data class GetComputedStyleForNodeResponse(computedStyle: List<CSSComputedStyleProperty>)
Represents response frame that is returned from CSS#getComputedStyleForNode operation call.
GetInlineStylesForNodeRequest
Link copied to clipboard
data class GetInlineStylesForNodeRequest(nodeId: NodeId)
Represents request frame that can be used with CSS#getInlineStylesForNode operation call.
GetInlineStylesForNodeResponse
Link copied to clipboard
data class GetInlineStylesForNodeResponse(inlineStyle: CSSStyle?, attributesStyle: CSSStyle?)
Represents response frame that is returned from CSS#getInlineStylesForNode operation call.
GetMatchedStylesForNodeRequest
Link copied to clipboard
data class GetMatchedStylesForNodeRequest(nodeId: NodeId)
Represents request frame that can be used with CSS#getMatchedStylesForNode operation call.
GetMatchedStylesForNodeResponse
Link copied to clipboard
data class GetMatchedStylesForNodeResponse(inlineStyle: CSSStyle?, attributesStyle: CSSStyle?, matchedCSSRules: List<RuleMatch>?, pseudoElements: List<PseudoElementMatches>?, inherited: List<InheritedStyleEntry>?, cssKeyframesRules: List<CSSKeyframesRule>?)
Represents response frame that is returned from CSS#getMatchedStylesForNode operation call.
GetMediaQueriesResponse
Link copied to clipboard
data class GetMediaQueriesResponse(medias: List<CSSMedia>)
Represents response frame that is returned from CSS#getMediaQueries operation call.
GetPlatformFontsForNodeRequest
Link copied to clipboard
data class GetPlatformFontsForNodeRequest(nodeId: NodeId)
Represents request frame that can be used with CSS#getPlatformFontsForNode operation call.
GetPlatformFontsForNodeResponse
Link copied to clipboard
data class GetPlatformFontsForNodeResponse(fonts: List<PlatformFontUsage>)
Represents response frame that is returned from CSS#getPlatformFontsForNode operation call.
GetStyleSheetTextRequest
Link copied to clipboard
data class GetStyleSheetTextRequest(styleSheetId: StyleSheetId)
Represents request frame that can be used with CSS#getStyleSheetText operation call.
GetStyleSheetTextResponse
Link copied to clipboard
data class GetStyleSheetTextResponse(text: String)
Represents response frame that is returned from CSS#getStyleSheetText operation call.
InheritedStyleEntry
Link copied to clipboard
data class InheritedStyleEntry(inlineStyle: CSSStyle?, matchedCSSRules: List<RuleMatch>)
Inherited CSS rule collection from ancestor node.
MediaQuery
Link copied to clipboard
data class MediaQuery(expressions: List<MediaQueryExpression>, active: Boolean)
Media query descriptor.
MediaQueryExpression
Link copied to clipboard
data class MediaQueryExpression(value: Double, unit: String, feature: String, valueRange: SourceRange?, computedLength: Double?)
Media query expression descriptor.
PlatformFontUsage
Link copied to clipboard
data class PlatformFontUsage(familyName: String, isCustomFont: Boolean, glyphCount: Double)
Information about amount of glyphs that were rendered with given font.
PseudoElementMatches
Link copied to clipboard
data class PseudoElementMatches(pseudoType: PseudoType, matches: List<RuleMatch>)
CSS rule collection for a single pseudo style.
RuleMatch
Link copied to clipboard
data class RuleMatch(rule: CSSRule, matchingSelectors: List<Int>)
Match data for a CSS rule.
RuleUsage
Link copied to clipboard
data class RuleUsage(styleSheetId: StyleSheetId, startOffset: Double, endOffset: Double, used: Boolean)
CSS coverage information.
SelectorList
Link copied to clipboard
data class SelectorList(selectors: List<Value>, text: String)
Selector list data.
SetEffectivePropertyValueForNodeRequest
Link copied to clipboard
data class SetEffectivePropertyValueForNodeRequest(nodeId: NodeId, propertyName: String, value: String)
Represents request frame that can be used with CSS#setEffectivePropertyValueForNode operation call.
SetKeyframeKeyRequest
Link copied to clipboard
data class SetKeyframeKeyRequest(styleSheetId: StyleSheetId, range: SourceRange, keyText: String)
Represents request frame that can be used with CSS#setKeyframeKey operation call.
SetKeyframeKeyResponse
Link copied to clipboard
data class SetKeyframeKeyResponse(keyText: Value)
Represents response frame that is returned from CSS#setKeyframeKey operation call.
SetLocalFontsEnabledRequest
Link copied to clipboard
data class SetLocalFontsEnabledRequest(enabled: Boolean)
Represents request frame that can be used with CSS#setLocalFontsEnabled operation call.
SetMediaTextRequest
Link copied to clipboard
data class SetMediaTextRequest(styleSheetId: StyleSheetId, range: SourceRange, text: String)
Represents request frame that can be used with CSS#setMediaText operation call.
SetMediaTextResponse
Link copied to clipboard
data class SetMediaTextResponse(media: CSSMedia)
Represents response frame that is returned from CSS#setMediaText operation call.
SetRuleSelectorRequest
Link copied to clipboard
data class SetRuleSelectorRequest(styleSheetId: StyleSheetId, range: SourceRange, selector: String)
Represents request frame that can be used with CSS#setRuleSelector operation call.
SetRuleSelectorResponse
Link copied to clipboard
data class SetRuleSelectorResponse(selectorList: SelectorList)
Represents response frame that is returned from CSS#setRuleSelector operation call.
SetStyleSheetTextRequest
Link copied to clipboard
data class SetStyleSheetTextRequest(styleSheetId: StyleSheetId, text: String)
Represents request frame that can be used with CSS#setStyleSheetText operation call.
SetStyleSheetTextResponse
Link copied to clipboard
data class SetStyleSheetTextResponse(sourceMapURL: String?)
Represents response frame that is returned from CSS#setStyleSheetText operation call.
SetStyleTextsRequest
Link copied to clipboard
data class SetStyleTextsRequest(edits: List<StyleDeclarationEdit>)
Represents request frame that can be used with CSS#setStyleTexts operation call.
SetStyleTextsResponse
Link copied to clipboard
data class SetStyleTextsResponse(styles: List<CSSStyle>)
Represents response frame that is returned from CSS#setStyleTexts operation call.
ShorthandEntry
Link copied to clipboard
data class ShorthandEntry(name: String, value: String, important: Boolean?)
SourceRange
Link copied to clipboard
data class SourceRange(startLine: Int, startColumn: Int, endLine: Int, endColumn: Int)
Text range within a resource.
StopRuleUsageTrackingResponse
Link copied to clipboard
data class StopRuleUsageTrackingResponse(ruleUsage: List<RuleUsage>)
Represents response frame that is returned from CSS#stopRuleUsageTracking operation call.
StyleDeclarationEdit
Link copied to clipboard
data class StyleDeclarationEdit(styleSheetId: StyleSheetId, range: SourceRange, text: String)
A descriptor of operation to mutate style declaration text.
StyleSheetAddedEvent
Link copied to clipboard
data class StyleSheetAddedEvent(header: CSSStyleSheetHeader) : Event
Fired whenever an active document stylesheet is added.
StyleSheetChangedEvent
Link copied to clipboard
data class StyleSheetChangedEvent(styleSheetId: StyleSheetId) : Event
Fired whenever a stylesheet is changed as a result of the client operation.
StyleSheetId
Link copied to clipboard
typealias StyleSheetId = String
StyleSheetOrigin
Link copied to clipboard
enum StyleSheetOrigin : Enum<StyleSheetOrigin>
Stylesheet type: &quot;injected&quot; for stylesheets injected via extension, &quot;user-agent&quot; for user-agent stylesheets, &quot;inspector&quot; for stylesheets created by the inspector (i.e.
StyleSheetRemovedEvent
Link copied to clipboard
data class StyleSheetRemovedEvent(styleSheetId: StyleSheetId) : Event
Fired whenever an active document stylesheet is removed.
TakeComputedStyleUpdatesResponse
Link copied to clipboard
data class TakeComputedStyleUpdatesResponse(nodeIds: List<NodeId>)
Represents response frame that is returned from CSS#takeComputedStyleUpdates operation call.
TakeCoverageDeltaResponse
Link copied to clipboard
data class TakeCoverageDeltaResponse(coverage: List<RuleUsage>, timestamp: Double)
Represents response frame that is returned from CSS#takeCoverageDelta operation call.
TrackComputedStyleUpdatesRequest
Link copied to clipboard
data class TrackComputedStyleUpdatesRequest(propertiesToTrack: List<CSSComputedStyleProperty>)
Represents request frame that can be used with CSS#trackComputedStyleUpdates operation call.
Value
Link copied to clipboard
data class Value(text: String, range: SourceRange?)
Data for a simple selector (these are delimited by commas in a selector list).